package com.dfbz.demo04_接口的多实现;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {
    public static void main(String[] args) {

        C c=new C();
        c.method();
    }
}


interface A {
    void method();
}


interface B {
    void method();
}


class C implements A, B {

    @Override
    public void method() {
        System.out.println("c");
    }
}
/*

类不允许多继承
class A{
    public void method(){
        System.out.println("a");
    }
}
class B{
    public void method(){
        System.out.println("b");
    }
}

class C extends A,B{

}*/
